median Interface

public interface median

Module Procedures

private pure function median_array(x) result(rst)

Computes the median of the values in an array.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x(:)

The array of values to analyze.

Return Value real(kind=real64)

Median; empty arrays or nonfinite observations give NaN.

private pure function median_column(x) result(rst)

Computes the median by sorting a copy, leaving the column unchanged.

Arguments

Type IntentOptional Attributes Name
class(data_column), intent(in) :: x

The input column; unallocated storage is treated as empty.

Return Value real(kind=real64)

Median; empty or nonfinite data give NaN.